package com.lck.blogmanager.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.lck.blogmanager.entity.QuestionCommentEntity;
import com.lck.blogmanager.req.PageBlogCommentReq;
import com.lck.blogmanager.req.PageQuestionCommentReq;
import com.lck.blogmanager.res.UserBlogCommentPageRes;
import com.lck.blogmanager.res.UserQuestionCommentPageRes;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

@Component
@Mapper
public interface QuestionCommentMapper extends BaseMapper<QuestionCommentEntity> {

    Page<UserQuestionCommentPageRes> getComments(@Param("req") PageQuestionCommentReq req,
                                                 Page page);
}
